package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class DeleteStakePickEvent
		extends GwtEvent<DeleteStakePickEventHandler>
{
	public static final GwtEvent.Type<DeleteStakePickEventHandler>	TYPE	= new GwtEvent.Type<DeleteStakePickEventHandler>();
	private String													mid;
	private boolean													misadmin;

	public DeleteStakePickEvent(String id, boolean admin)
	{
		mid = id;
		misadmin = admin;
	}

	@Override
	protected void dispatch(DeleteStakePickEventHandler handler)
	{
		handler.onStakePickDeleted(mid, misadmin);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<DeleteStakePickEventHandler> getAssociatedType()
	{
		return TYPE;
	}

}
